package com.yssw.onlinechat.domain;

import com.yssw.onlinechat.dto.SocketMsg;
import lombok.*;

import java.io.Serializable;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;

/**
 * @Author KnockingFarmers
 * @Date 2023/4/20 9:12
 * @PackageName:com.yssw.onlinechat.domain
 * @ClassName: OnlineChatUser
 * @Description: TODO
 * @Version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@EqualsAndHashCode
public class OnlineChatUser implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 历史记录
     */
    private CopyOnWriteArrayList<SocketMsg> historyMsg;
    /**
     * 是否在线
     */
    private boolean status;

    private String ip;
    private int unreadNum;


}
